﻿#ifndef ACTIONFORM_H
#define ACTIONFORM_H

#include <QTimer>
#include <QWidget>

namespace Ui {
class ActionForm;
}

class ActionForm : public QWidget
{
    Q_OBJECT

public:
    explicit ActionForm(QWidget *parent = nullptr);
    ~ActionForm();

    void initForm();

    void initUI();

    void setCompanyName(QString info);
    void setSoftName(QString info);
    void setSoftVersion(QString info);
    void setCompanyInfo(QString info);


    void checkApp();

    /* 窗口移动 */
    virtual void mouseMoveEvent(QMouseEvent *event);
    virtual void mousePressEvent(QMouseEvent *event);
    virtual void mouseReleaseEvent(QMouseEvent *event);

signals:
    void done();
    void appQuit();
private slots:
    void on_Bt_copy_clicked();

    void on_Bt_close_clicked();

    void update();
    void on_Bt_create_clicked();

private:
    Ui::ActionForm *ui;

    QPoint z;

    QStringList strList;
    QTimer *timer;

    int m_nIndex = 0;
    int m_nCout = 0;
    int m_nState = 0;
    int m_nPro = 0;
};

#endif // ACTIONFORM_H
